
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Docker · GitBook笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="chenjiebin">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="idea.html" />
    
    
    <link rel="prev" href="tool.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../document/kubernetes/kubernetes.html">
            
                <a href="../document/kubernetes/kubernetes.html">
            
                    
                    Kubernetes英文教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../document/kubernetes/kubernetes.html">
            
                <a href="../document/kubernetes/kubernetes.html#concepts">
            
                    
                    Kubernetes Concepts
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="../document/kubernetes/concepts/overview.html">
            
                <a href="../document/kubernetes/concepts/overview.html">
            
                    
                    Kubernetes Overview
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="../document/kubernetes/concepts/components.html">
            
                <a href="../document/kubernetes/concepts/components.html">
            
                    
                    Kubernetes Components
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.3" data-path="../document/kubernetes/concepts/nodes.html">
            
                <a href="../document/kubernetes/concepts/nodes.html">
            
                    
                    Kubernetes Nodes
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../document/kubernetes/kubernetes.html">
            
                <a href="../document/kubernetes/kubernetes.html#tutorial">
            
                    
                    Kubernetes Tutorial
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="../document/kubernetes/tutorial/kubernetes-basics.html">
            
                <a href="../document/kubernetes/tutorial/kubernetes-basics.html">
            
                    
                    Kubernetes Basics
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../java/java.html">
            
                <a href="../java/java.html">
            
                    
                    Java基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../java/java-summary.html">
            
                <a href="../java/java-summary.html">
            
                    
                    Java_Summary
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../java/java-jvm.html">
            
                <a href="../java/java-jvm.html">
            
                    
                    Java_JVM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../java/effectiveJava.html">
            
                <a href="../java/effectiveJava.html">
            
                    
                    effectiveJava
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../java/design-pattern.html">
            
                <a href="../java/design-pattern.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../java/JavaTest.html">
            
                <a href="../java/JavaTest.html">
            
                    
                    JavaTest
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../java/myframe.html">
            
                <a href="../java/myframe.html">
            
                    
                    MyFrame
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../database/database.html">
            
                <a href="../database/database.html">
            
                    
                    数据库基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../database/mysql.html">
            
                <a href="../database/mysql.html">
            
                    
                    MySQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../database/redis.html">
            
                <a href="../database/redis.html">
            
                    
                    Redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../database/kingbase.html">
            
                <a href="../database/kingbase.html">
            
                    
                    KingBase
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../database/polardb.html">
            
                <a href="../database/polardb.html">
            
                    
                    PolarDB
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../system/system.html">
            
                <a href="../system/system.html">
            
                    
                    环境配置工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../system/nodejs.html">
            
                <a href="../system/nodejs.html">
            
                    
                    Node.js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../system/gitbook.html">
            
                <a href="../system/gitbook.html">
            
                    
                    Gitbook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../system/linux.html">
            
                <a href="../system/linux.html">
            
                    
                    Linux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../system/kylin.html">
            
                <a href="../system/kylin.html">
            
                    
                    麒麟系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="tool.html">
            
                <a href="tool.html">
            
                    
                    开发工具介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.6.1" data-path="docker.html">
            
                <a href="docker.html">
            
                    
                    Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="idea.html">
            
                <a href="idea.html">
            
                    
                    Idea
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="maven.html">
            
                <a href="maven.html">
            
                    
                    Maven
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="gradle.html">
            
                <a href="gradle.html">
            
                    
                    Gradle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../framework/kubernate.html">
            
                <a href="../framework/kubernate.html">
            
                    
                    Kubernetes
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >Docker</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#docker"><b>1. </b>Docker</a></li><ul><li><span class="title-icon "></span><a href="#windows&#x5B89;&#x88C5;docker"><b>1.1. </b>Windows&#x5B89;&#x88C5;Docker</a></li><li><span class="title-icon "></span><a href="#linux&#x5B89;&#x88C5;docker"><b>1.2. </b>Linux&#x5B89;&#x88C5;Docker</a></li><li><span class="title-icon "></span><a href="#docker&#x5BB9;&#x5668;&#x547D;&#x4EE4;"><b>1.3. </b>Docker&#x5BB9;&#x5668;&#x547D;&#x4EE4;</a></li><ul><li><span class="title-icon "></span><a href="#docker-stats"><b>1.3.1. </b>docker stats</a></li><li><span class="title-icon "></span><a href="#docker-run"><b>1.3.2. </b>docker run</a></li></ul><li><span class="title-icon "></span><a href="#docker&#x955C;&#x50CF;&#x547D;&#x4EE4;"><b>1.4. </b>Docker&#x955C;&#x50CF;&#x547D;&#x4EE4;</a></li><ul><li><span class="title-icon "></span><a href="#&#x5220;&#x9664;&#x955C;&#x50CF;&#x547D;&#x4EE4;"><b>1.4.1. </b>&#x5220;&#x9664;&#x955C;&#x50CF;&#x547D;&#x4EE4;</a></li></ul><li><span class="title-icon "></span><a href="#docker&#x5E38;&#x7528;&#x955C;&#x50CF;"><b>1.5. </b>Docker&#x5E38;&#x7528;&#x955C;&#x50CF;</a></li><ul><li><span class="title-icon "></span><a href="#redis"><b>1.5.1. </b>redis</a></li><li><span class="title-icon "></span><a href="#nacos"><b>1.5.2. </b>nacos</a></li></ul><li><span class="title-icon "></span><a href="#idea&#x4F7F;&#x7528;docker"><b>1.6. </b>IDEA&#x4F7F;&#x7528;Docker</a></li><ul><li><span class="title-icon "></span><a href="#docker-desktop-&#x914D;&#x7F6E;"><b>1.6.1. </b>Docker Desktop &#x914D;&#x7F6E;</a></li><li><span class="title-icon "></span><a href="#docker&#x914D;&#x7F6E;"><b>1.6.2. </b>Docker&#x914D;&#x7F6E;</a></li><li><span class="title-icon "></span><a href="#maven&#x9879;&#x76EE;&#x914D;&#x7F6E;"><b>1.6.3. </b>maven&#x9879;&#x76EE;&#x914D;&#x7F6E;</a></li><li><span class="title-icon "></span><a href="#docker&#x8FD0;&#x884C;&#x914D;&#x7F6E;"><b>1.6.4. </b>Docker&#x8FD0;&#x884C;&#x914D;&#x7F6E;</a></li><li><span class="title-icon "></span><a href="#&#x67E5;&#x770B;&#x7ED3;&#x679C;"><b>1.6.5. </b>&#x67E5;&#x770B;&#x7ED3;&#x679C;</a></li></ul></ul></ul></div><a href="#docker" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="docker"><a name="docker" class="anchor-navigation-ex-anchor" href="#docker"><i class="fa fa-link" aria-hidden="true"></i></a>1. Docker</h1>
<p><a href="https://www.w3cschool.cn/docker/" target="_blank">https://www.w3cschool.cn/docker/</a></p>
<p><a href="https://docker_practice.gitee.io/zh-cn/" target="_blank">https://docker_practice.gitee.io/zh-cn/</a></p>
<p><a href="https://www.runoob.com/docker/docker-tutorial.html" target="_blank">https://www.runoob.com/docker/docker-tutorial.html</a></p>
<p>Docker&#x662F;&#x4E00;&#x4E2A;&#x5F00;&#x6E90;&#x7684;&#x3001;&#x8F7B;&#x91CF;&#x7EA7;&#x7684;&#x5BB9;&#x5668;&#x5F15;&#x64CE;&#xFF0C;&#x4E3B;&#x8981;&#x8FD0;&#x884C;&#x4E8E;Linux&#x548C;Windows&#xFF0C;&#x7528;&#x4E8E;&#x5EFA;&#x7ACB;&#x3001;&#x53D1;&#x5E03;&#x3001;&#x8FD0;&#x884C;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;</p>
<h2 id="windows&#x5B89;&#x88C5;docker"><a name="windows&#x5B89;&#x88C5;docker" class="anchor-navigation-ex-anchor" href="#windows&#x5B89;&#x88C5;docker"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. Windows&#x5B89;&#x88C5;Docker</h2>
<p>win7&#x5B89;&#x88C5;Docker&#x9700;&#x8981;&#x4F7F;&#x7528;<a href="https://github.com/docker/toolbox/releases" target="_blank">ToolBox</a></p>
<p>win10&#x5B89;&#x88C5;Docker&#x4F7F;&#x7528;<a href="https://hub.docker.com/editions/community/docker-ce-desktop-windows" target="_blank">DeskTop</a></p>
<p><code>Desktop 4.10.1</code>&#x5B89;&#x88C5;&#x540E;&#x63D0;&#x793A; <code>Docker Desktop stopping</code>&#xFF0C;&#x9700;&#x8981;&#x5B89;&#x88C5;<code>Docker 4.4.4</code></p>
<blockquote>
<p>&#x63D0;&#x793A;&quot;&#x6B63;&#x5728;&#x67E5;&#x627E;bash.exe&quot;?</p>
</blockquote>
<p>&#x56E0;&#x4E3A;&#x7CFB;&#x7EDF;&#x5DF2;&#x7ECF;&#x5B89;&#x88C5;git&#xFF0C;&#x4FEE;&#x6539;&#x5FEB;&#x6377;&#x65B9;&#x5F0F;&#x6307;&#x5B9A;git&#x8DEF;&#x5F84;</p>
<p>D:\Program Files\Git\bin\bash.exe &#x2013;login -i &quot;D:\Program Files\Software\Docker Toolbox\start.sh&quot;</p>
<blockquote>
<p>Windows&#x9ED8;&#x8BA4;&#x751F;&#x6210;&#x7684;Linux&#x865A;&#x62DF;&#x673A;&#x7528;&#x6237;&#x540D;&#x548C;&#x5BC6;&#x7801;</p>
</blockquote>
<p>docker:tcuser, ssh</p>
<p>root, sudo -i (docker&#x7528;&#x6237;&#x4E0B;&#x6267;&#x884C;)</p>
<h2 id="linux&#x5B89;&#x88C5;docker"><a name="linux&#x5B89;&#x88C5;docker" class="anchor-navigation-ex-anchor" href="#linux&#x5B89;&#x88C5;docker"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. Linux&#x5B89;&#x88C5;Docker</h2>
<pre class="language-"><code class="lang-bash"><span class="token comment"># 1.&#x67E5;&#x770B;Linux&#x5185;&#x6838;&#x7248;&#x672C;&gt;=3.10</span>
<span class="token function">uname</span> <span class="token parameter variable">-r</span>
<span class="token comment"># 2.&#x5B89;&#x88C5;Docker</span>
yum <span class="token parameter variable">-y</span> <span class="token function">install</span> <span class="token function">docker</span>
<span class="token comment"># 3.&#x542F;&#x52A8;Docker&#x540E;&#x53F0;&#x670D;&#x52A1;</span>
<span class="token function">service</span> <span class="token function">docker</span> start
<span class="token comment"># 4.&#x6D4B;&#x8BD5;hello-world</span>
<span class="token function">docker</span> run hello-world
<span class="token comment"># 5.&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#x547D;&#x4EE4;</span>
<span class="token function">docker</span> run ubuntu:latest /bin/echo <span class="token string">&quot;hello-world&quot;</span>
</code></pre>
<h2 id="docker&#x5BB9;&#x5668;&#x547D;&#x4EE4;"><a name="docker&#x5BB9;&#x5668;&#x547D;&#x4EE4;" class="anchor-navigation-ex-anchor" href="#docker&#x5BB9;&#x5668;&#x547D;&#x4EE4;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. Docker&#x5BB9;&#x5668;&#x547D;&#x4EE4;</h2>
<pre class="language-"><code class="lang-bash"><span class="token comment"># &#x67E5;&#x770B;docker&#x6240;&#x7528;&#x547D;&#x4EE4;</span>
<span class="token function">docker</span>
<span class="token comment"># &#x67E5;&#x770B;docker&#x6307;&#x5B9A;&#x547D;&#x4EE4;</span>
<span class="token function">docker</span> stats <span class="token parameter variable">--help</span>
<span class="token comment"># &#x8FD0;&#x884C;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> run <span class="token parameter variable">-d</span> <span class="token parameter variable">-P</span> training/webapp python app.py
<span class="token function">docker</span> run <span class="token parameter variable">-d</span> <span class="token parameter variable">-p</span> <span class="token parameter variable">--name</span> app training/webapp python app.py
<span class="token function">docker</span> run <span class="token parameter variable">-d</span> <span class="token parameter variable">-p</span> <span class="token number">5000</span>:5000 training/webapp python app.py
    <span class="token parameter variable">-d</span>  &#x8BA9;&#x5BB9;&#x5668;&#x5728;&#x540E;&#x53F0;&#x8FD0;&#x884C;
    <span class="token parameter variable">-P</span>  &#x662F;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7AEF;&#x53E3;&#x968F;&#x673A;&#x6620;&#x5C04;&#x5230;&#x4E3B;&#x673A;&#x7684;&#x7AEF;&#x53E3;
    <span class="token parameter variable">-p</span>  &#x662F;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7AEF;&#x53E3;&#x7ED1;&#x5B9A;&#x5230;&#x6307;&#x5B9A;&#x7684;&#x4E3B;&#x673A;&#x7AEF;&#x53E3;
    <span class="token parameter variable">--name</span>  &#x547D;&#x540D;&#x5BB9;&#x5668;
<span class="token comment"># &#x67E5;&#x770B;&#x6B63;&#x5728;&#x8FD0;&#x884C;&#x7684;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> <span class="token function">ps</span>
    .ID         &#x5BB9;&#x5668;ID
    .Image        &#x5BB9;&#x5668;&#x955C;&#x50CF;
    .Command    &#x6267;&#x884C;&#x547D;&#x4EE4;
    .CreateAt    &#x5BB9;&#x5668;&#x521B;&#x5EFA;&#x65F6;&#x95F4;
    .RunningFor    &#x8FD0;&#x884C;&#x65F6;&#x957F;
    .Ports        &#x5BB9;&#x5668;&#x66B4;&#x9732;&#x7AEF;&#x53E3;
    .Status        &#x5BB9;&#x5668;&#x72B6;&#x6001;
    .Names        &#x5BB9;&#x5668;&#x540D;&#x79F0;
    .Label        &#x5206;&#x914D;&#x7ED9;&#x5BB9;&#x5668;&#x7684;&#x6240;&#x6709;&#x6807;&#x7B7E;
    .Mounts        &#x5BB9;&#x5668;&#x6302;&#x8F7D;&#x7684;&#x5377;
    .Networks    &#x5BB9;&#x5668;&#x4F7F;&#x7528;&#x7684;&#x7F51;&#x7EDC;&#x540D;&#x79F0;
<span class="token comment"># &#x67E5;&#x770B;&#x6700;&#x540E;&#x521B;&#x5EFA;&#x7684;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> <span class="token function">ps</span> <span class="token parameter variable">-l</span>
<span class="token comment"># &#x67E5;&#x770B;&#x6240;&#x6709;&#x7684;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> <span class="token function">ps</span> <span class="token parameter variable">-a</span>
<span class="token comment"># &#x67E5;&#x8BE2;&#x6307;&#x5B9A;&#x540D;&#x79F0;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> <span class="token function">ps</span> <span class="token operator">|</span> <span class="token function">grep</span> name
<span class="token comment"># &#x67E5;&#x770B;&#x5BB9;&#x5668;&#x6307;&#x5B9A;&#x4FE1;&#x606F;</span>
<span class="token function">docker</span> <span class="token function">ps</span> <span class="token parameter variable">--format</span> <span class="token string">&quot;table {{.ID}}<span class="token entity" title="\t">\t</span>{{.PORTS}<span class="token entity" title="\t">\t</span>{{.NAMES}}&quot;</span>
<span class="token comment"># &#x67E5;&#x770B;&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x7684;&#x7AEF;&#x53E3;</span>
<span class="token function">docker</span> port containerId/Name
<span class="token comment"># &#x67E5;&#x770B;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7684;&#x6807;&#x51C6;&#x8F93;&#x51FA;</span>
<span class="token function">docker</span> logs containerId/Name
    <span class="token parameter variable">-f</span>  &#x8BA9;docker logs&#x50CF;&#x4F7F;&#x7528;tail -f&#x4E00;&#x6837;&#x6765;&#x8F93;&#x51FA;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x7684;&#x6807;&#x51C6;&#x8F93;&#x51FA;
<span class="token comment"># &#x67E5;&#x770B;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x8FD0;&#x884C;&#x7684;&#x8FDB;&#x7A0B;</span>
<span class="token function">docker</span> <span class="token function">top</span> containerId/Name
<span class="token comment"># &#x67E5;&#x770B;&#x5BB9;&#x5668;&#x8BE6;&#x7EC6;&#x914D;&#x7F6E;&#x4FE1;&#x606F;</span>
<span class="token function">docker</span> inspect containerId/Name
<span class="token comment"># &#x505C;&#x6B62;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> stop containerId/Name
<span class="token comment"># &#x91CD;&#x542F;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> start/restart containerId/Name
<span class="token comment"># &#x8FDB;&#x5165;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> attach containerId/Name
<span class="token comment"># &#x79FB;&#x9664;&#x5BB9;&#x5668;(&#x79FB;&#x9664;&#x524D;&#x5FC5;&#x987B;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x62A5;&#x9519;)</span>
<span class="token function">docker</span> <span class="token function">rm</span> containerId/Name
<span class="token comment"># &#x5220;&#x9664;&#x6240;&#x6709;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> <span class="token function">rm</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">docker</span> <span class="token function">ps</span> <span class="token parameter variable">-a</span><span class="token variable">)</span></span>
<span class="token comment"># &#x67E5;&#x770B;&#x5386;&#x53F2;</span>
<span class="token function">docker</span> <span class="token function">history</span> containerId/Name
<span class="token comment"># &#x5BFC;&#x51FA;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> <span class="token builtin class-name">export</span> containerId/Name <span class="token operator">&gt;</span> xxx.tar
</code></pre>
<h3 id="docker-stats"><a name="docker-stats" class="anchor-navigation-ex-anchor" href="#docker-stats"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.1. docker stats</h3>
<blockquote>
<p>&#x53C2;&#x6570;&#x4FE1;&#x606F;</p>
</blockquote>
<table>
<thead>
<tr>
<th>&#x540D;&#x79F0;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>CONTAINER ID &#x548C; NAME</td>
<td>&#x5BB9;&#x5668;&#x7684;ID&#x548C;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td>CPU% &#x548C; MEM%</td>
<td>&#x5BB9;&#x5668;&#x6B63;&#x5728;&#x4F7F;&#x7528;&#x7684;&#x4E3B;&#x673A;CPU&#x548C;&#x5185;&#x5B58;&#x7684;&#x5360;&#x6BD4;</td>
</tr>
<tr>
<td>MEM USAGE / LIMIE</td>
<td>&#x5BB9;&#x5668;&#x6B63;&#x5728;&#x4F7F;&#x7528;&#x7684;&#x603B;&#x5185;&#x5B58;&#x4EE5;&#x53CA;&#x5141;&#x8BB8;&#x4F7F;&#x7528;&#x7684;&#x603B;&#x5185;&#x5B58;&#x91CF;</td>
</tr>
<tr>
<td>NET I/O</td>
<td>&#x5BB9;&#x5668;&#x901A;&#x8FC7;&#x5176;&#x7F51;&#x7EDC;&#x63A5;&#x53E3;&#x53D1;&#x9001;&#x548C;&#x63A5;&#x53D7;&#x7684;&#x6570;&#x636E;&#x91CF;</td>
</tr>
<tr>
<td>BLOCK I/O</td>
<td>&#x5BB9;&#x5668;&#x5DF2;&#x4ECE;&#x4E3B;&#x673A;&#x4E0A;&#x7684;&#x5757;&#x8BBE;&#x5907;&#x8BFB;&#x53D6;&#x548C;&#x5199;&#x5165;&#x7684;&#x6570;&#x636E;&#x91CF;</td>
</tr>
<tr>
<td>PIDs</td>
<td>&#x5BB9;&#x5668;&#x521B;&#x5EFA;&#x7684;&#x8FDB;&#x7A0B;&#x6216;&#x7EBF;&#x7A0B;&#x6570;</td>
</tr>
</tbody>
</table>
<h3 id="docker-run"><a name="docker-run" class="anchor-navigation-ex-anchor" href="#docker-run"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.2. docker run</h3>
<blockquote>
<p>&#x5E38;&#x7528;&#x9009;&#x9879;&#x8BF4;&#x660E;</p>
</blockquote>
<table>
<thead>
<tr>
<th>&#x547D;&#x4EE4;</th>
<th>&#x8BE6;&#x7EC6;&#x547D;&#x4EE4;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>-d</td>
<td>--detach=false</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x662F;&#x5426;&#x5728;&#x540E;&#x53F0;&#x8FD0;&#x884C;</td>
</tr>
<tr>
<td>-i</td>
<td>--interactive=fase</td>
<td>&#x6253;&#x5F00;STDIN&#xFF0C;&#x7528;&#x4E8E;&#x63A7;&#x5236;&#x53F0;&#x4EA4;&#x4E92;</td>
</tr>
<tr>
<td>-t</td>
<td>--tty=false</td>
<td>&#x5206;&#x914D;tty&#x8BBE;&#x5907;&#xFF0C;&#x53EF;&#x4EE5;&#x652F;&#x6301;&#x7EC8;&#x7AEF;&#x767B;&#x9646;</td>
</tr>
<tr>
<td>-u</td>
<td>--user=&quot;&quot;</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x7684;&#x7528;&#x6237;</td>
</tr>
<tr>
<td>-a</td>
<td>--attach=[]</td>
<td>&#x767B;&#x9646;&#x5BB9;&#x5668;&#xFF08;&#x5FC5;&#x987B;&#x662F;docker run -d&#x542F;&#x52A8;&#x7684;&#x5BB9;&#x5668;&#xFF09;</td>
</tr>
<tr>
<td>-w</td>
<td>--workdir=&quot;&quot;</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x7684;&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;</td>
</tr>
<tr>
<td>-c</td>
<td>--cpu-shares=0</td>
<td>&#x8BBE;&#x7F6E;&#x5BB9;&#x5668;CPU&#x6743;&#x91CD;&#xFF0C;&#x5728;CPU&#x5171;&#x4EAB;&#x573A;&#x666F;&#x4F7F;&#x7528;</td>
</tr>
<tr>
<td>-e</td>
<td>--env=[]</td>
<td>&#x6307;&#x5B9A;&#x5DE5;&#x4F5C;&#x73AF;&#x5883;&#xFF0C;&#x5BB9;&#x5668;&#x4E2D;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x8BE5;&#x73AF;&#x5883;&#x53D8;&#x91CF;</td>
</tr>
<tr>
<td>-m</td>
<td>--memory=&quot;&quot;</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x7684;&#x5185;&#x5B58;&#x4E0A;&#x9650;</td>
</tr>
<tr>
<td>-P</td>
<td>--publish-all=false</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x66B4;&#x9732;&#x7684;&#x7AEF;&#x53E3;</td>
</tr>
<tr>
<td>-p</td>
<td>--publish=[]</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x66B4;&#x9732;&#x7684;&#x7AEF;&#x53E3;</td>
</tr>
<tr>
<td>-h</td>
<td>--hostname=&quot;&quot;</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x7684;&#x4E3B;&#x673A;&#x540D;</td>
</tr>
<tr>
<td>-v</td>
<td>--volume=[]</td>
<td>&#x7ED9;&#x5BB9;&#x5668;&#x6302;&#x8F7D;&#x5B58;&#x50A8;&#x5377;&#xFF0C;&#x6302;&#x8F7D;&#x5230;&#x5BB9;&#x5668;&#x7684;&#x67D0;&#x4E2A;&#x76EE;&#x5F55;</td>
</tr>
<tr>
<td></td>
<td>--volumes-from=[]</td>
<td>&#x7ED9;&#x5BB9;&#x5668;&#x6302;&#x8F7D;&#x5176;&#x4ED6;&#x5BB9;&#x5668;&#x4E0A;&#x7684;&#x5377;&#xFF0C;&#x6302;&#x8F7D;&#x5230;&#x5BB9;&#x5668;&#x7684;&#x67D0;&#x4E2A;&#x76EE;&#x5F55;</td>
</tr>
<tr>
<td></td>
<td>--cap-add=[]</td>
<td>&#x6DFB;&#x52A0;&#x6743;&#x9650;&#xFF0C;&#x8BE6;&#x89C1;&#xFF1A;<a href="http://linux.die.net/man/7/capabilities" target="_blank">http://linux.die.net/man/7/capabilities</a></td>
</tr>
<tr>
<td></td>
<td>--cap-drop=[]</td>
<td>&#x5220;&#x9664;&#x6743;&#x9650;&#xFF0C;&#x8BE6;&#x89C1;&#xFF1A;<a href="http://linux.die.net/man/7/capabilities" target="_blank">http://linux.die.net/man/7/capabilities</a></td>
</tr>
<tr>
<td></td>
<td>--cidfile=&quot;&quot;</td>
<td>&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#x540E;&#xFF0C;&#x6307;&#x5B9A;&#x6587;&#x4EF6;&#x4E2D;&#x5199;&#x5165;&#x5BB9;&#x5668;PID&#x503C;</td>
</tr>
<tr>
<td></td>
<td>--cpuset=&quot;&quot;</td>
<td>&#x8BBE;&#x7F6E;&#x5BB9;&#x5668;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x54EA;&#x4E9B;CPU&#xFF0C;&#x6B64;&#x53C2;&#x6570;&#x53EF;&#x4EE5;&#x72EC;&#x5360;CPU</td>
</tr>
<tr>
<td></td>
<td>--device=[]</td>
<td>&#x6DFB;&#x52A0;&#x4E3B;&#x673A;&#x8BBE;&#x5907;&#x7ED9;&#x5BB9;&#x5668;&#xFF0C;&#x76F8;&#x5F53;&#x4E8E;&#x8BBE;&#x5907;&#x76F4;&#x901A;</td>
</tr>
<tr>
<td></td>
<td>--dns=[]</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x7684;dns&#x670D;&#x52A1;&#x5668;</td>
</tr>
<tr>
<td></td>
<td>--dns-search=[]</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x7684;dns&#x641C;&#x7D22;&#x57DF;&#x540D;&#xFF0C;&#x5199;&#x5165;&#x5230;&#x5BB9;&#x5668;&#x7684;/etc/resolv.conf&#x6587;&#x4EF6;</td>
</tr>
<tr>
<td></td>
<td>--entrypoint=&quot;&quot;</td>
<td>&#x8986;&#x76D6;image&#x7684;&#x5165;&#x53E3;&#x70B9;</td>
</tr>
<tr>
<td></td>
<td>--env-file=[]</td>
<td>&#x6307;&#x5B9A;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x6587;&#x4EF6;&#xFF0C;&#x6587;&#x4EF6;&#x683C;&#x5F0F;&#x4E3A;&#x6BCF;&#x884C;&#x4E00;&#x4E2A;&#x73AF;&#x5883;&#x53D8;&#x91CF;</td>
</tr>
<tr>
<td></td>
<td>--expose=[]</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x66B4;&#x9732;&#x7684;&#x7AEF;&#x53E3;&#xFF0C;&#x5373;&#x4FEE;&#x6539;&#x955C;&#x50CF;&#x7684;&#x66B4;&#x9732;&#x7AEF;&#x53E3;</td>
</tr>
<tr>
<td></td>
<td>--link=[]</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x95F4;&#x7684;&#x5173;&#x8054;&#xFF0C;&#x4F7F;&#x7528;&#x5176;&#x4ED6;&#x5BB9;&#x5668;&#x7684;IP&#x3001;env&#x7B49;&#x4FE1;&#x606F;</td>
</tr>
<tr>
<td></td>
<td>--lxc-conf=[]</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x53EA;&#x6709;&#x5728;&#x6307;&#x5B9A;--exec-driver=lxc&#x65F6;&#x4F7F;&#x7528;</td>
</tr>
<tr>
<td></td>
<td>--name=&quot;&quot;</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x540D;&#x79F0;&#xFF0C;&#x540E;&#x7EED;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x540D;&#x5B57;&#x8FDB;&#x884C;&#x5BB9;&#x5668;&#x7BA1;&#x7406;</td>
</tr>
<tr>
<td></td>
<td>--net=&quot;bridge&quot;</td>
<td>&#x5BB9;&#x5668;&#x7F51;&#x7EDC;&#x8BBE;&#x7F6E;</td>
</tr>
<tr>
<td></td>
<td>--privileged=false</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x662F;&#x5426;&#x4E3A;&#x7279;&#x6743;&#x5BB9;&#x5668;&#xFF0C;&#x5373;root&#x62E5;&#x6709;&#x5168;&#x90E8;&#x6743;&#x9650;</td>
</tr>
<tr>
<td></td>
<td>--restart=&quot;no&quot;</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x505C;&#x6B62;&#x540E;&#x7684;&#x91CD;&#x542F;&#x7B56;&#x7565;</td>
</tr>
<tr>
<td></td>
<td>-rm=false</td>
<td>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x505C;&#x6B62;&#x540E;&#x5220;&#x9664;&#x5BB9;&#x5668;&#xFF08;&#x4E0D;&#x652F;&#x6301;docker run -d&#x542F;&#x52A8;&#x7684;&#x5BB9;&#x5668;&#xFF09;</td>
</tr>
<tr>
<td></td>
<td>--sig-proxy=true</td>
<td>&#x8BBE;&#x7F6E;&#x7531;&#x4EE3;&#x7406;&#x63A5;&#x53D7;&#x5E76;&#x5904;&#x7406;&#x4FE1;&#x53F7;</td>
</tr>
</tbody>
</table>
<h2 id="docker&#x955C;&#x50CF;&#x547D;&#x4EE4;"><a name="docker&#x955C;&#x50CF;&#x547D;&#x4EE4;" class="anchor-navigation-ex-anchor" href="#docker&#x955C;&#x50CF;&#x547D;&#x4EE4;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4. Docker&#x955C;&#x50CF;&#x547D;&#x4EE4;</h2>
<pre class="language-"><code class="lang-bash"><span class="token comment">#&#x67E5;&#x770B;&#x672C;&#x5730;&#x955C;&#x50CF;</span>
<span class="token function">docker</span> images
    REPOSITITORY    &#x955C;&#x50CF;&#x7684;&#x4ED3;&#x5E93;&#x6E90;
    TGA             &#x955C;&#x50CF;&#x7684;&#x6807;&#x7B7E;
    IMAGE ID        &#x955C;&#x50CF;ID
    CREATED         &#x955C;&#x50CF;&#x521B;&#x5EFA;&#x65F6;&#x95F4;
    SIZE            &#x955C;&#x50CF;&#x5927;&#x5C0F;
<span class="token comment">#&#x4E0B;&#x8F7D;&#x955C;&#x50CF;</span>
<span class="token function">docker</span> pull imageName:TAG
<span class="token comment"># &#x67E5;&#x627E;&#x955C;&#x50CF;</span>
<span class="token function">docker</span> search imageName
<span class="token comment"># &#x521B;&#x5EFA;&#x955C;&#x50CF;&#xFF1A;&#x66F4;&#x6539;&#x539F;&#x6709;&#x955C;&#x50CF;</span>
<span class="token function">docker</span> run <span class="token parameter variable">-t</span> <span class="token parameter variable">-i</span> imageName:TAG /bin/bash
    <span class="token parameter variable">-t</span>  &#x5728;&#x5BB9;&#x5668;&#x5185;&#x6307;&#x5B9A;&#x4E00;&#x4E2A;&#x4F2A;&#x7EC8;&#x7AEF;&#x6216;&#x7EC8;&#x7AEF;
    <span class="token parameter variable">-i</span>  &#x5141;&#x8BB8;&#x5BF9;&#x5BB9;&#x5668;&#x5185;&#x7684;&#x6807;&#x51C6;&#x8F93;&#x5165;&#xFF08;STDIN&#xFF09;&#x8FDB;&#x884C;&#x4EA4;&#x4E92;
<span class="token function">docker</span> commit <span class="token parameter variable">-m</span><span class="token operator">=</span><span class="token string">&quot;update image&quot;</span> <span class="token parameter variable">-a</span><span class="token operator">=</span><span class="token string">&quot;author&quot;</span> containerId imageNewName:TAG
    <span class="token parameter variable">-m</span>  &#x63D0;&#x4EA4;&#x7684;&#x63CF;&#x8FF0;&#x4FE1;&#x606F;
    <span class="token parameter variable">-a</span>  &#x955C;&#x50CF;&#x4F5C;&#x8005;
<span class="token comment"># &#x521B;&#x5EFA;&#x955C;&#x50CF;&#xFF1A;&#x4F7F;&#x7528;Dockerfile&#x6784;&#x5EFA;&#x955C;&#x50CF;</span>
<span class="token comment"># 1.&#x6BCF;&#x4E00;&#x4E2A;&#x6307;&#x4EE4;&#x90FD;&#x4F1A;&#x5728;&#x955C;&#x50CF;&#x4E0A;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x5C42;&#xFF0C;&#x6BCF;&#x4E00;&#x4E2A;&#x6307;&#x4EE4;&#x7684;&#x524D;&#x7F00;&#x5FC5;&#x987B;&#x90FD;&#x662F;&#x5927;&#x5199;&#x7684;</span>
<span class="token comment"># 2.&#x7B2C;&#x4E00;&#x6761;FROM&#xFF0C;&#x6307;&#x5B9A;&#x4F7F;&#x7528;&#x54EA;&#x4E2A;&#x955C;&#x50CF;&#x6E90;</span>
<span class="token comment"># 3.RUN&#x6307;&#x5B9A;&#x544A;&#x8BC9;docker&#x5728;&#x955C;&#x50CF;&#x4E2D;&#x6267;&#x884C;&#x547D;&#x4EE4;&#xFF0C;&#x5B89;&#x88C5;&#x4E86;&#x4EC0;&#x4E48;</span>
<span class="token function">cat</span> Dockerfile
FROM centos:6.7
MAINTAINER author <span class="token string">&quot;author@163.com&quot;</span>

RUN /bin/echo <span class="token string">&apos;root:123456&apos;</span> <span class="token operator">|</span> chpasswd
RUN <span class="token function">useradd</span> user
RUN /bin/echo <span class="token string">&apos;user:123456&apos;</span> <span class="token operator">|</span> chpasswd
RUN /bin/echo <span class="token parameter variable">-e</span> <span class="token string">&quot;LANG=<span class="token entity" title="\&quot;">\&quot;</span>en_US.UTF-8<span class="token entity" title="\&quot;">\&quot;</span>&quot;</span> <span class="token operator">&amp;</span>gt<span class="token punctuation">;</span> /etc/default/local
EXPOSE <span class="token number">22</span>
EXPOSE <span class="token number">80</span>
CMD /usr/sbin/sshd <span class="token parameter variable">-D</span>
<span class="token function">docker</span> build <span class="token parameter variable">--rm</span><span class="token operator">=</span>true <span class="token parameter variable">-t</span> user/centos:6.7 <span class="token builtin class-name">.</span>
    <span class="token parameter variable">--rm</span>    &#x6784;&#x5EFA;&#x5B8C;&#x540E;&#x5220;&#x9664;&#x4E34;&#x65F6;&#x7684;Container
            Dockerfile&#x6BCF;&#x4E00;&#x884C;&#x6307;&#x4EE4;&#x90FD;&#x4F1A;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x4E34;&#x65F6;&#x7684;Container&#xFF0C;&#x4E00;&#x822C;&#x8FD9;&#x4E9B;&#x4E34;&#x65F6;&#x751F;&#x6210;&#x7684;Container&#x662F;&#x4E0D;&#x9700;&#x8981;&#x7684;
    <span class="token parameter variable">-t</span>      &#x6307;&#x5B9A;&#x8981;&#x521B;&#x5EFA;&#x7684;&#x76EE;&#x6807;&#x955C;&#x50CF;&#x540D;
    <span class="token builtin class-name">.</span>       Dockerfile&#x6587;&#x4EF6;&#x6240;&#x5728;&#x76EE;&#x5F55;&#xFF0C;&#x53EF;&#x4EE5;&#x6307;&#x5B9A;Dockerfile&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
<span class="token comment"># &#x67E5;&#x770B;&#x521B;&#x5EFA;&#x53F7;&#x7684;&#x955C;&#x50CF;</span>
<span class="token function">docker</span> <span class="token function">ps</span>
<span class="token comment"># &#x4F7F;&#x7528;&#x65B0;&#x955C;&#x50CF;&#x521B;&#x5EFA;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> run <span class="token parameter variable">-t</span> <span class="token parameter variable">-i</span> user/centos:6.7 /bin/bash
root@containerid:~$ <span class="token function">id</span> user
<span class="token comment"># &#x8BBE;&#x7F6E;&#x955C;&#x50CF;&#x6807;&#x7B7E;</span>
<span class="token function">docker</span> tag imageId user/centos:dev
<span class="token comment"># &#x4FDD;&#x5B58;&#x955C;&#x50CF;</span>
<span class="token function">docker</span> save myimage <span class="token operator">|</span> <span class="token function">bzip2</span> <span class="token parameter variable">-9</span> -c<span class="token operator">&gt;</span> /home/save.tar.bz2
<span class="token comment"># &#x52A0;&#x8F7D;&#x955C;&#x50CF;</span>
<span class="token function">bzip2</span> <span class="token parameter variable">-d</span> <span class="token parameter variable">-c</span> <span class="token operator">&lt;</span> /home/save.tar.bz2 <span class="token operator">|</span> <span class="token function">docker</span> load
</code></pre>
<h3 id="&#x5220;&#x9664;&#x955C;&#x50CF;&#x547D;&#x4EE4;"><a name="&#x5220;&#x9664;&#x955C;&#x50CF;&#x547D;&#x4EE4;" class="anchor-navigation-ex-anchor" href="#&#x5220;&#x9664;&#x955C;&#x50CF;&#x547D;&#x4EE4;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.1. &#x5220;&#x9664;&#x955C;&#x50CF;&#x547D;&#x4EE4;</h3>
<blockquote>
<p>Linux &#x4E0B;&#x5220;&#x9664; none &#x955C;&#x50CF;</p>
</blockquote>
<pre class="language-"><code class="lang-shell"><span class="token function">docker</span> rmi <span class="token variable"><span class="token variable">`</span><span class="token function">docker</span> images <span class="token operator">|</span> <span class="token function">grep</span> none <span class="token operator">|</span> <span class="token function">awk</span> <span class="token string">&apos;{print $3}&apos;</span><span class="token variable">`</span></span>
</code></pre>
<blockquote>
<p>window &#x4E0B;&#x5220;&#x9664;&#x6307;&#x5B9A;&#x955C;&#x50CF;</p>
</blockquote>
<pre class="language-"><code class="lang-shell"><span class="token comment"># &#x67E5;&#x770B;&#x955C;&#x50CF;</span>
<span class="token function">docker</span> images
<span class="token comment"># &#x7B5B;&#x9009;&#x955C;&#x50CF;</span>
<span class="token function">docker</span> images test*
<span class="token function">docker</span> images <span class="token operator">|</span> findStr <span class="token string">&quot;test*&quot;</span>
<span class="token comment"># &#x83B7;&#x53D6;&#x7B5B;&#x9009;&#x955C;&#x50CF;ID</span>
<span class="token keyword">for</span> /f <span class="token string">&quot;tokens=3 delims= &quot;</span> %a <span class="token keyword">in</span> <span class="token punctuation">(</span><span class="token string">&apos;docker images test*&apos;</span><span class="token punctuation">)</span> <span class="token keyword">do</span> @echo %a
<span class="token keyword">for</span> /f <span class="token string">&quot;tokens=3 delims= &quot;</span> %a <span class="token keyword">in</span> <span class="token punctuation">(</span><span class="token string">&apos;docker images ^| findStr &quot;test*&quot;&apos;</span><span class="token punctuation">)</span> <span class="token keyword">do</span> @echo %a
<span class="token comment"># &#x5220;&#x9664;&#x955C;&#x50CF;</span>
<span class="token keyword">for</span> /f <span class="token string">&quot;tokens=3 delims= &quot;</span> %a <span class="token keyword">in</span> <span class="token punctuation">(</span><span class="token string">&apos;docker images test*&apos;</span><span class="token punctuation">)</span> <span class="token keyword">do</span> @echo %a <span class="token operator">&amp;&amp;</span> <span class="token function">docker</span> rmi %a
<span class="token keyword">for</span> /f <span class="token string">&quot;tokens=3 delims= &quot;</span> %a <span class="token keyword">in</span> <span class="token punctuation">(</span><span class="token string">&apos;docker images ^| findStr &quot;test*&quot;&apos;</span><span class="token punctuation">)</span> <span class="token keyword">do</span> @echo %a <span class="token operator">&amp;&amp;</span> <span class="token function">docker</span> rmi %a
</code></pre>
<h2 id="docker&#x5E38;&#x7528;&#x955C;&#x50CF;"><a name="docker&#x5E38;&#x7528;&#x955C;&#x50CF;" class="anchor-navigation-ex-anchor" href="#docker&#x5E38;&#x7528;&#x955C;&#x50CF;"><i class="fa fa-link" aria-hidden="true"></i></a>1.5. Docker&#x5E38;&#x7528;&#x955C;&#x50CF;</h2>
<h3 id="redis"><a name="redis" class="anchor-navigation-ex-anchor" href="#redis"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.1. redis</h3>
<h3 id="nacos"><a name="nacos" class="anchor-navigation-ex-anchor" href="#nacos"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.2. nacos</h3>
<pre class="language-"><code class="lang-shell"><span class="token comment"># &#x4E0B;&#x8F7D;&#x955C;&#x50CF;</span>
<span class="token function">docker</span> pull jerry6290/nacos-server:latest
<span class="token comment"># &#x521B;&#x5EFA;&#x5BB9;&#x5668;</span>
<span class="token function">docker</span> run <span class="token parameter variable">-d</span> <span class="token parameter variable">-v</span> /server <span class="token parameter variable">--privileged</span><span class="token operator">=</span>true <span class="token parameter variable">--name</span> nacos <span class="token parameter variable">-p</span> <span class="token number">8848</span>:8848 <span class="token parameter variable">-e</span> <span class="token assign-left variable">PREFER_HOME_MODE</span><span class="token operator">=</span>hostname <span class="token parameter variable">-e</span> <span class="token assign-left variable">MODE</span><span class="token operator">=</span>standalone nacos/nacos-server:v2.1.2
</code></pre>
<h2 id="idea&#x4F7F;&#x7528;docker"><a name="idea&#x4F7F;&#x7528;docker" class="anchor-navigation-ex-anchor" href="#idea&#x4F7F;&#x7528;docker"><i class="fa fa-link" aria-hidden="true"></i></a>1.6. IDEA&#x4F7F;&#x7528;Docker</h2>
<h3 id="docker-desktop-&#x914D;&#x7F6E;"><a name="docker-desktop-&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#docker-desktop-&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.6.1. Docker Desktop &#x914D;&#x7F6E;</h3>
<p><a href="https://blog.csdn.net/qq_35885175/article/details/115484559" target="_blank">https://blog.csdn.net/qq_35885175/article/details/115484559</a></p>
<ul>
<li>&#x5F00;&#x653E;2375&#x7AEF;&#x53E3;</li>
</ul>
<p><img src="../images/docker/docker-1.png" alt="&#x914D;&#x7F6E;Docker"></p>
<ul>
<li>&#x5F00;&#x653E;&#x4E3B;&#x673A;&#x7AEF;&#x53E3;2375</li>
</ul>
<p>&#x7BA1;&#x7406;&#x5458;&#x6743;&#x9650;&#x6253;&#x5F00; cmd &#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;</p>
<p><code>netsh interface portproxy add v4tov4 listenport=2375 connectaddress=127.0.0.1 connectport=2375 listenaddress=&#x672C;&#x5730;IP&#x5730;&#x5740; protocol=tcp</code></p>
<ul>
<li>IP&#x5730;&#x5740;&#x9650;&#x5236;</li>
</ul>
<p><img src="../images/docker/docker-2.png" alt="&#x914D;&#x7F6E;Docker"></p>
<p>&#x589E;&#x52A0;<code>host:[&#x201C;0.0.0.0:2375&#x201D;]</code></p>
<ul>
<li>&#x6DFB;&#x52A0;&#x56FD;&#x5185;&#x955C;&#x50CF;</li>
</ul>
<p><img src="../images/docker/docker-3.png" alt="1668651552935"></p>
<p>&#x955C;&#x50CF;&#x5730;&#x5740;&#x5982;&#x4E0B;</p>
<pre class="language-"><code class="lang-json"><span class="token property">&quot;registry-mirrors&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;https://9cpn8tt6.mirror.aliyuncs.com&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;https://yxzrazem.mirror.aliyuncs.com&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;https://registry.cn-hangzhou.aliyuncs.com&quot;</span>
<span class="token punctuation">]</span>
</code></pre>
<ul>
<li>Dockerfile&#x6784;&#x5EFA;</li>
</ul>
<p>workdir &#x521B;&#x5EFA; Dockerfile
&#x7BA1;&#x7406;&#x5458;&#x6743;&#x9650;&#x6253;&#x5F00; cmd &#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;</p>
<pre class="language-"><code class="lang-shell"><span class="token builtin class-name">cd</span> workdir
<span class="token function">docker</span> build <span class="token parameter variable">-t</span> name:version <span class="token builtin class-name">.</span>
</code></pre>
<h3 id="docker&#x914D;&#x7F6E;"><a name="docker&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#docker&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.6.2. Docker&#x914D;&#x7F6E;</h3>
<p>Idea&#x5B89;&#x88C5;Docker&#x63D2;&#x4EF6;&#xFF0C;&#x5BF9;&#x8BBE;&#x7F6E;Docker&#x548C;Registry</p>
<blockquote>
<p>&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;Docker&#x914D;&#x7F6E;&#x524D;&#x5FC5;&#x987B;&#x786E;&#x4FDD;Docker&#x670D;&#x52A1;&#x5DF2;&#x6B63;&#x5E38;&#x542F;&#x52A8;</p>
</blockquote>
<p><img src="../images/docker/idea-1.png" alt="&#x914D;&#x7F6E;Docker"></p>
<p><img src="../images/docker/idea-2.png" alt="&#x914D;&#x7F6E;Registry"></p>
<h3 id="maven&#x9879;&#x76EE;&#x914D;&#x7F6E;"><a name="maven&#x9879;&#x76EE;&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#maven&#x9879;&#x76EE;&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.6.3. maven&#x9879;&#x76EE;&#x914D;&#x7F6E;</h3>
<p>&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;maven&#x9879;&#x76EE;&#xFF0C;pom.xml&#x6DFB;&#x52A0;docker&#x7F16;&#x8BD1;&#x4F9D;&#x8D56;&#xFF0C;&#x65B0;&#x5EFA;Dockerfile&#x7528;&#x6765;&#x6784;&#x5EFA;&#x955C;&#x50CF;</p>
<p><img src="../images/docker/idea-3.png" alt="&#x6DFB;&#x52A0;&#x6784;&#x5EFA;&#x4F9D;&#x8D56;"></p>
<pre class="language-"><code class="lang-xml">    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>build</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>finalName</span><span class="token punctuation">&gt;</span></span>docker<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>finalName</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>resources</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>resource</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>directory</span><span class="token punctuation">&gt;</span></span>src/main/docker<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>directory</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>filtering</span><span class="token punctuation">&gt;</span></span>true<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>filtering</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>includes</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>include</span><span class="token punctuation">&gt;</span></span>**/Dockerfile<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>include</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>includes</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>targetPath</span><span class="token punctuation">&gt;</span></span>../docker<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>targetPath</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>resource</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>resources</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>plugins</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>plugin</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>groupId</span><span class="token punctuation">&gt;</span></span>com.spotify<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>groupId</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>artifactId</span><span class="token punctuation">&gt;</span></span>docker-maven-plugin<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>artifactId</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>version</span><span class="token punctuation">&gt;</span></span>1.2.2<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>version</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>configuration</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>imageName</span><span class="token punctuation">&gt;</span></span>hello-docker<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>imageName</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>dockerDirectory</span><span class="token punctuation">&gt;</span></span>${project.build.directory}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>dockerDirectory</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>resources</span><span class="token punctuation">&gt;</span></span>
                        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>resource</span><span class="token punctuation">&gt;</span></span>
                            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>targetPath</span><span class="token punctuation">&gt;</span></span>/<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>targetPath</span><span class="token punctuation">&gt;</span></span>
                            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>directory</span><span class="token punctuation">&gt;</span></span>${project.build.directory}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>directory</span><span class="token punctuation">&gt;</span></span>
                            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>include</span><span class="token punctuation">&gt;</span></span>${project.build.finalName}.jar<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>include</span><span class="token punctuation">&gt;</span></span>
                        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>resource</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>resources</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>configuration</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>plugin</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>plugins</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>build</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<p><img src="../images/docker/idea-4.png" alt="&#x6DFB;&#x52A0;Dockerfile"></p>
<pre class="language-"><code class="lang-bash">FROM tomcat
MAINTAINER web

ADD /target/docker.war /usr/local/tomcat/webapps

CMD <span class="token punctuation">[</span><span class="token string">&quot;catalina.sh&quot;</span>, <span class="token string">&quot;run&quot;</span><span class="token punctuation">]</span>
</code></pre>
<h3 id="docker&#x8FD0;&#x884C;&#x914D;&#x7F6E;"><a name="docker&#x8FD0;&#x884C;&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#docker&#x8FD0;&#x884C;&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.6.4. Docker&#x8FD0;&#x884C;&#x914D;&#x7F6E;</h3>
<p>&#x5728;&#x5B8C;&#x6210;&#x9879;&#x76EE;&#x5F00;&#x53D1;&#x5E76;&#x901A;&#x8FC7;&#x6D4B;&#x8BD5;&#x540E;&#xFF0C;&#x5BF9;&#x9879;&#x76EE;&#x8FDB;&#x884C;&#x6253;&#x5305;&#xFF0C;&#x7136;&#x540E;&#x914D;&#x7F6E;docker&#x8FD0;&#x884C;&#x76F8;&#x5173;&#x914D;&#x7F6E;</p>
<p>&#x6B64;&#x5904;&#x4F7F;&#x7528;Dockerfile&#x6784;&#x5EFA;&#x955C;&#x50CF;&#xFF0C;&#x56E0;&#x6B64;&#x9009;&#x62E9;Docker -&gt; Dockerfile</p>
<p><img src="../images/docker/idea-5.png" alt="Docker&#x8FD0;&#x884C;&#x914D;&#x7F6E;"></p>
<h3 id="&#x67E5;&#x770B;&#x7ED3;&#x679C;"><a name="&#x67E5;&#x770B;&#x7ED3;&#x679C;" class="anchor-navigation-ex-anchor" href="#&#x67E5;&#x770B;&#x7ED3;&#x679C;"><i class="fa fa-link" aria-hidden="true"></i></a>1.6.5. &#x67E5;&#x770B;&#x7ED3;&#x679C;</h3>
<p>&#x914D;&#x7F6E;&#x597D;Docker&#x8FD0;&#x884C;&#x53C2;&#x6570;&#x540E;&#xFF0C;&#x70B9;&#x51FB;Run Docker&#x6267;&#x884C;&#x90E8;&#x7F72;&#x64CD;&#x4F5C;</p>
<p>&#x6B64;&#x64CD;&#x4F5C;&#x4F1A;&#x5C06;&#x6253;&#x5305;&#x597D;&#x7684;&#x9879;&#x76EE;&#x53D1;&#x9001;&#x5230;Docker&#x5E76;&#x6784;&#x5EFA;&#x6210;&#x955C;&#x50CF;&#xFF0C;&#x4F7F;&#x7528;&#x955C;&#x50CF;&#x751F;&#x6210;&#x5BB9;&#x5668;&#x5E76;&#x542F;&#x52A8;&#x5BB9;&#x5668;</p>
<blockquote>
<p>&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;&#x91CD;&#x65B0;&#x90E8;&#x7F72;&#x9879;&#x76EE;&#x524D;&#x5FC5;&#x987B;&#x5173;&#x95ED;&#x8FD0;&#x884C;&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x53EF;&#x76F4;&#x63A5;&#x70B9;&#x51FB;&#x5BF9;&#x5E94;&#x5BB9;&#x5668;&#x8FDB;&#x884C;&#x5173;&#x95ED;</p>
</blockquote>
<p>&#x5BB9;&#x5668;&#x542F;&#x52A8;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x53EF;&#x4F7F;&#x7528; <a href="http://192.168.99.100:8080/xxx" target="_blank">http://192.168.99.100:8080/xxx</a> &#x8BBF;&#x95EE;&#x7A0B;&#x5E8F;</p>
<p><img src="../images/docker/idea-6.png" alt="Docker&#x8FD0;&#x884C;&#x914D;&#x7F6E;"></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="tool.html" class="navigation navigation-prev " aria-label="Previous page: 开发工具介绍">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="idea.html" class="navigation navigation-next " aria-label="Next page: Idea">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Docker","level":"1.6.1","depth":2,"next":{"title":"Idea","level":"1.6.2","depth":2,"path":"markdown/tool/idea.md","ref":"markdown/tool/idea.md","articles":[]},"previous":{"title":"开发工具介绍","level":"1.6","depth":1,"path":"markdown/tool/tool.md","ref":"markdown/tool/tool.md","articles":[{"title":"Docker","level":"1.6.1","depth":2,"path":"markdown/tool/docker.md","ref":"markdown/tool/docker.md","articles":[]},{"title":"Idea","level":"1.6.2","depth":2,"path":"markdown/tool/idea.md","ref":"markdown/tool/idea.md","articles":[]},{"title":"Maven","level":"1.6.3","depth":2,"path":"markdown/tool/maven.md","ref":"markdown/tool/maven.md","articles":[]},{"title":"Gradle","level":"1.6.4","depth":2,"path":"markdown/tool/gradle.md","ref":"markdown/tool/gradle.md","articles":[]},{"title":"Kubernetes","level":"1.6.5","depth":2,"path":"markdown/framework/kubernate.md","ref":"markdown/framework/kubernate.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["theme-default","prism","-highlight","search-pro","-search","-lunr","expandable-chapters-small","splitter","-sharing","anchor-navigation-ex","code"],"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"},"pluginsConfig":{"prism":{},"search-pro":{},"expandable-chapters-small":{},"splitter":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"showLevel":false,"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}},"theme":"default","author":"chenjiebin","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pluginConfig":{"prism":{"css":["prismjs/themes/prism-solarizedlight.css"]},"anchor-navigation-ex":{"showLevel":true},"theme-default":{"toggleMenu":false}},"variables":{},"title":"GitBook笔记","gitbook":"*","description":"学习笔记，包含前后端基础知识及框架的学习笔记"},"file":{"path":"markdown/tool/docker.md","mtime":"2023-11-19T13:43:04.145Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-02-28T09:32:04.838Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

